@import '../sass/colors';
@import '../sass/fonts';
@import '../sass/mixins';
@import '../sass/media-queries';

.root {
  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: $dark-gray;

    @include tablet-down {
      flex-direction: column;
      align-items: flex-start;
    }

    .brand {
      display: flex;
      flex-direction: row;
      align-items: center;
      margin-right: 20px;
      padding: 4px;
      outline: none;
      text-decoration: none;

      &:focus {
        box-shadow: 0 0 3px 0 $light-green;
      }

      img {
        height: 48px;
      }

      h1 {
        @include font-size(32px);

        color: $white;
        font-family: $metropolis;
        white-space: nowrap;
      }
    }

    nav {
      display: flex;
      flex-direction: row;
      align-items: center;

      @include tablet-down {
        margin: 20px 0px;
      }

      a {
        @include font-size(16px);
        padding: 8px;
        border-radius: 6px;
        outline: none;
        color: $light-green;
        font-family: $metropolis;
        font-weight: bold;
        text-decoration: none;

        &:hover {
          text-decoration: underline;
        }

        &:focus {
          box-shadow: 0 0 3px 0 $light-green;
        }
      }

      a + a {
        margin-left: 20px;
      }
    }

    .badge {
      @include font-size(12px);

      margin-left: 20px;
      padding: 6px;
      border-radius: 6px;
      background-color: $danger;
      color: $white;
      font-family: $metropolis;
      font-weight: bold;

      @include tablet-down {
        margin: 0px;
      }
    }
  }
}
